package com.kehongborui.fliggy.exception;

import com.kehongborui.fliggy.enums.ExceptionMessage;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-09-03
 */
public class AuthenticationException extends RuntimeException {
    private ExceptionMessage msg;

    public AuthenticationException(ExceptionMessage msg){
        super(msg.getDesc());
        this.msg = msg;
    }

    public ExceptionMessage getMsg() {
        return msg;
    }

    public void setMsg(ExceptionMessage msg) {
        this.msg = msg;
    }
}
